<template>
  <div class="iframe-container">
    <iframe
      :src="URL"
      frameborder="0"
    ></iframe>
  </div>
</template>

<script>
export default {
  name: 'IFrame',
  data() {
    return {
      URL: ''
    };
  },
  created() {
    this.URL = this.$route.query.path;
  }
};
</script>

<style lang="scss" scoped>
.iframe-container {
  width: 100%;
  height: 100%;
  iframe {
    width: 100%;
    height: 100%;
    overflow: auto;
  }
}
</style>